package Lab02.test37;

/**
 * Created by Administrator on 2017/11/13.
 */
public class Undergraduate extends Student {

    Undergraduate(String s, double a, double b, double c)

    {
        this.name = s;
        this.a = a;
        this.b = b;
        this.c = c;
        this.average = (a + b + c) / 3;


    }
    public void Display()

    {
        if (this.average >= 60)
            status = 1;
        else
            status = 0;
        if (status == 1)
            System.out.println(name + ":通过！");
        if (status == 0)
            System.out.println(name + ":不通过！");
    }
}